import datetime


class File:
    def __init__(self,
                 fileID: int = None,
                 filename: str = None,
                 time: datetime = None,
                 path: str = None,
                 size: int = None,
                 userID: str = None):
        self.fileID = fileID
        self.filename = filename
        self.time = time
        self.path = path
        self.size = size
        self.userID = userID

    def to_string(self):
        return "fileID: {}, filename: {}, time: {}, path: {}, size: {}, userID: {}".format(
            self.fileID, self.filename, self.time, self.path, self.size, self.userID)
